home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / defines < prev    next >
Text File  |  1995-12-29  |  1KB  |  59 lines

  1. // defines standard header
  2. #ifndef _DEFINES_
  3. #define _DEFINES_
  4. #ifndef _YXVALS_
  5.  #include <yxvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10.  
  11. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  12. #pragma import on
  13. #endif
  14. #endif
  15.  
  16.         // type definitions
  17. typedef void fvoid_t();
  18. #ifndef    _PTRDIFFT
  19.  #define _PTRDIFFT
  20.  typedef _Ptrdifft ptrdiff_t;
  21. #endif
  22. #ifndef _SIZET
  23.  #define _SIZET
  24.  typedef _Sizet size_t;
  25. #endif
  26. #ifndef _WCHART
  27.  #define _WCHART
  28.  typedef _Wchart wchar_t;
  29. #endif
  30. #ifndef _WINTT
  31.  #define _WINTT
  32.  typedef _Wintt wint_t;
  33. #endif
  34. enum capacity {default_size, reserve};
  35.         // constants
  36. const size_t NPOS = (size_t)(-1);
  37.         // functions
  38. void _Nomemory();
  39.  
  40. #if __MWERKS__
  41. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  42. #pragma import reset
  43. #endif
  44.  
  45. #pragma options align=reset
  46. #endif
  47.  
  48. #endif
  49.  
  50. /*
  51.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  52.  * Consult your license regarding permissions and restrictions.
  53.  */
  54.  
  55. /* Change log:
  56.  *94June04 PlumHall baseline
  57.  *94Oct07 Inserted MW changes.
  58.  */
  59.